package com.oig.base.api.factory;

import com.oig.base.api.HsGoodsTariffService;
import com.oig.base.api.fallback.HsGoodsTariffServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class HsGoodsTariffServiceFallBackFactory implements FallbackFactory<HsGoodsTariffService> {

    @Override
    public HsGoodsTariffService create(Throwable cause) {
        HsGoodsTariffServiceFallBackImpl hsGoodsTariffServiceFallBack = new HsGoodsTariffServiceFallBackImpl();
        hsGoodsTariffServiceFallBack.setCause(cause);
        return hsGoodsTariffServiceFallBack;
    }
}
